﻿<%@ Page Title="Controls" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Controls.aspx.cs" Inherits="Templates_Controls" %>
<%@ Register src="Header.ascx" tagname="Header" tagprefix="uc" %>

<asp:Content ID="Content3" ContentPlaceHolderID="phMain" Runat="Server">
    <uc:Header ID="ucHeader" runat="server" />
    <div class="tabPage">
        <div class="actions">
            <asp:LinkButton ID="lnkAdd" CssClass="add" Text="Add New Template Control" runat="server" />
        </div>
        <telerik:RadGrid ID="grid" SkinID="FormsEdit" AutoGenerateColumns="false" DataSourceID="dsControls" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true" runat="server">
            <MasterTableView DataKeyNames="Id,ConcurencyId">
                <Columns>
                    <acms:RadGridTextBoxColumn HeaderText="Name" DataField="Name" Required="true" />
                    <acms:RadGridDropDownColumn HeaderText="Type" DataField="TypeName" DataValueField="TypeId" DataSourceID="dsControlTypes" DropDownValueField="Id" DropDownDisplayField="Name" ShowEmptyItem="true" Required="true" />
                    <acms:RadGridTextAreaColumn HeaderText="Notes" DataField="Notes" Rows="5" Cols="50" />
                    <acms:RadGridSequenceColumn />
                    <acms:RadGridEditColumn />
                    <acms:RadGridDeleteColumn />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    <acms:TemplateControlDataSource ID="dsControls" runat="server" />
    <acms:ControlTypeDataSource ID="dsControlTypes" runat="server" />
</asp:Content>

